package com.ruoyi.project.dj.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.Size;

/**
 * 支部标准化 - 分类表
 */
public class DjStandardCategory {
    private static final long serialVersionUID = 1L;

    /** 分类 ID */
    private Integer id;
    
    /** 分类名称 */
    private String name;
    
    /** 分类描述 */
    private String description;
    
    /** 创建时间 */
    private String createdAt;
    
    /** 更新时间 */
    private String updatedAt;
    private @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符") String createBy;
    private @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符") String updateBy;

    // getter and setter methods
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("description", getDescription())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .toString();
    }

    public void setCreateBy(@Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符") String createBy) {
        this.createBy = createBy;
    }

    public @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符") String getCreateBy() {
        return createBy;
    }

    public void setUpdateBy(@Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符") String updateBy) {
        this.updateBy = updateBy;
    }

    public @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符") String getUpdateBy() {
        return updateBy;
    }
}